# Install needed packages

dir.create(Sys.getenv("R_LIBS_USER"), showWarnings = FALSE, recursive = TRUE)
install.packages("ergm.count", Sys.getenv("R_LIBS_USER"), repos = "http://archive.linux.duke.edu/cran/")
install.packages("ergm_3.10.4.tar.gz", Sys.getenv("R_LIBS_USER"), repos = NULL,type="source")


#remaining packages can be installed from CRAN
install.packages(doParallel)
install.packages(foreach)
install.packages(broom)
install.packages(ggplot2)
install.packages(sna)
install.packages(intergraph)
install.packages(psych)
install.packages(amelia)
install.packages(xtable)
devtools::install_github("pdhoff/amen")
